style.scss 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. .channel-page {
  2. max-width: 1080px;
  3. margin: 0 auto;
  4. // ── 배너 ─────────────────────────────────────────
  5. &__banner {
  6. aspect-ratio: 6.2 / 1;
  7. background: linear-gradient(135deg, var(--bg-subtle), var(--border-default));
  8. border-radius: 12px;
  9. overflow: hidden;
  10. margin: 20px 20px 0 20px;
  11. }
  12. &__banner-img {
  13. width: 100%;
  14. height: 100%;
  15. object-fit: cover;
  16. }
  17. // ── 프로필: 썸네일 + 채널명/메타/버튼 ─────────────
  18. &__profile {
  19. display: flex;
  20. align-items: flex-start;
  21. gap: 16px;
  22. padding: 16px 16px 12px;
  23. }
  24. &__avatar {
  25. width: 72px;
  26. height: 72px;
  27. border-radius: 50%;
  28. overflow: visible;
  29. background: var(--bg-subtle);
  30. flex-shrink: 0;
  31. position: relative;
  32. display: block;
  33. text-decoration: none;
  34. img {
  35. width: 100%;
  36. height: 100%;
  37. object-fit: cover;
  38. border-radius: 50%;
  39. }
  40. &--live {
  41. padding: 2px;
  42. background: linear-gradient(135deg, #f43f5e, #dc2626, #f97316);
  43. background-origin: border-box;
  44. img {
  45. border: 2px solid var(--bg-page, #fff);
  46. }
  47. }
  48. }
  49. &__live-badge {
  50. position: absolute;
  51. bottom: -4px;
  52. left: 50%;
  53. transform: translateX(-50%);
  54. background: #dc2626;
  55. color: #fff;
  56. font-size: 0.5625rem;
  57. font-weight: 700;
  58. letter-spacing: 0.5px;
  59. padding: 1px 6px;
  60. border-radius: 3px;
  61. line-height: 1.4;
  62. border: none;
  63. }
  64. &__avatar-placeholder {
  65. width: 100%;
  66. height: 100%;
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. font-size: 1.75rem;
  71. font-weight: 700;
  72. color: var(--text-muted);
  73. border-radius: 50%;
  74. }
  75. &__info {
  76. flex: 1;
  77. min-width: 0;
  78. height: 100%;
  79. align-self: center;
  80. }
  81. &__name {
  82. font-size: 1.25rem;
  83. font-weight: 700;
  84. display: flex;
  85. align-items: center;
  86. gap: 6px;
  87. line-height: 1.3;
  88. a {
  89. color: inherit;
  90. text-decoration: none;
  91. &:hover {
  92. text-decoration: underline;
  93. }
  94. }
  95. }
  96. &__verified {
  97. display: inline-flex;
  98. align-items: center;
  99. justify-content: center;
  100. width: 16px;
  101. height: 16px;
  102. border-radius: 50%;
  103. background: #38ab23;
  104. color: #fff;
  105. font-size: 0.5625rem;
  106. flex-shrink: 0;
  107. }
  108. &__meta {
  109. display: flex;
  110. align-items: center;
  111. flex-wrap: wrap;
  112. gap: 4px;
  113. font-size: 0.8125rem;
  114. color: var(--text-muted);
  115. margin-top: 2px;
  116. span + span::before {
  117. content: ' · ';
  118. }
  119. }
  120. // ── 버튼 컨테이너 ───────────────────────────
  121. &__buttons {
  122. display: flex;
  123. align-items: center;
  124. gap: 8px;
  125. flex-wrap: wrap;
  126. // 데스크톱 전용 (info 내부)
  127. &--desktop {
  128. display: none;
  129. margin-top: 20px;
  130. }
  131. // 모바일 전용 (profile 아래 별도 줄)
  132. &--mobile {
  133. padding: 0 16px 4px;
  134. }
  135. }
  136. // ── 공통 액션 버튼 base (구독/팔로우) ──
  137. &__action {
  138. display: inline-flex;
  139. align-items: center;
  140. justify-content: center;
  141. gap: 6px;
  142. height: 36px;
  143. padding: 0 18px;
  144. border-radius: 999px;
  145. font-size: 0.875rem;
  146. font-weight: 600;
  147. line-height: 1;
  148. white-space: nowrap;
  149. text-decoration: none;
  150. border: 1px solid transparent;
  151. box-sizing: border-box;
  152. transition: background 0.15s ease, color 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
  153. &:disabled {
  154. opacity: 0.6;
  155. cursor: not-allowed;
  156. }
  157. }
  158. // 구독 (YouTube 외부 링크) — 검정
  159. &__subscribe-btn {
  160. background: var(--fg-default, #0f0f0f);
  161. color: var(--bg-page, #fff);
  162. &:hover {
  163. opacity: 0.85;
  164. }
  165. }
  166. // 팔로우 — 기본 follow-button 색상 유지, 사이즈만 통일
  167. // (follow-button 자체 padding/font-size/border-radius는 override)
  168. &__follow.follow-button {
  169. padding: 0 18px;
  170. height: 36px;
  171. font-size: 0.875rem;
  172. font-weight: 600;
  173. border-radius: 999px;
  174. line-height: 1;
  175. gap: 6px;
  176. }
  177. // ── 라이브 ───────────────────────────────────────
  178. &__live {
  179. display: flex;
  180. align-items: center;
  181. gap: 10px;
  182. padding: 10px 16px;
  183. margin: 0 16px;
  184. background: rgba(220, 38, 38, 0.05);
  185. border: 1px solid rgba(220, 38, 38, 0.15);
  186. border-radius: 8px;
  187. }
  188. &__live-dot {
  189. width: 8px;
  190. height: 8px;
  191. border-radius: 50%;
  192. background: #dc2626;
  193. flex-shrink: 0;
  194. animation: pulse-live 1.5s ease-in-out infinite;
  195. }
  196. &__live-title {
  197. flex: 1;
  198. font-size: 0.875rem;
  199. font-weight: 500;
  200. overflow: hidden;
  201. text-overflow: ellipsis;
  202. white-space: nowrap;
  203. }
  204. &__watch-btn {
  205. font-size: 0.8125rem;
  206. color: #3b82f6;
  207. font-weight: 500;
  208. flex-shrink: 0;
  209. white-space: nowrap;
  210. &:hover {
  211. text-decoration: underline;
  212. }
  213. }
  214. // ── 탭 네비게이션 ────────────────────────────────
  215. &__tabs {
  216. display: flex;
  217. border-bottom: 1px solid var(--border-default);
  218. margin-top: 4px;
  219. padding: 0 16px;
  220. }
  221. &__tab {
  222. padding: 12px 16px;
  223. font-size: 0.875rem;
  224. font-weight: 500;
  225. color: var(--text-muted);
  226. cursor: pointer;
  227. position: relative;
  228. &--active {
  229. color: var(--fg-default);
  230. &::after {
  231. content: '';
  232. position: absolute;
  233. bottom: -1px;
  234. left: 0;
  235. right: 0;
  236. height: 2px;
  237. background: var(--fg-default);
  238. border-radius: 2px 2px 0 0;
  239. }
  240. }
  241. &:hover:not(&--active) {
  242. color: var(--fg-default);
  243. }
  244. }
  245. // ── 탭 콘텐츠 ───────────────────────────────────
  246. &__tab-content {
  247. padding: 16px;
  248. }
  249. &__description {
  250. font-size: 0.875rem;
  251. color: var(--text-secondary);
  252. line-height: 1.6;
  253. white-space: pre-line;
  254. }
  255. &__empty {
  256. font-size: 0.875rem;
  257. color: var(--text-muted);
  258. }
  259. // ── 안내(없음/중단) 화면 ─────────────────────────
  260. &__notice {
  261. display: flex;
  262. flex-direction: column;
  263. align-items: center;
  264. justify-content: center;
  265. text-align: center;
  266. gap: 12px;
  267. min-height: 50vh;
  268. padding: 48px 24px;
  269. }
  270. &__notice-title {
  271. font-size: 1.25rem;
  272. font-weight: 700;
  273. color: var(--fg-default);
  274. }
  275. &__notice-desc {
  276. font-size: 0.9375rem;
  277. color: var(--text-muted);
  278. line-height: 1.6;
  279. }
  280. &__notice-home {
  281. margin-top: 8px;
  282. display: inline-flex;
  283. align-items: center;
  284. justify-content: center;
  285. height: 38px;
  286. padding: 0 20px;
  287. border-radius: 999px;
  288. font-size: 0.875rem;
  289. font-weight: 600;
  290. text-decoration: none;
  291. background: var(--fg-default, #0f0f0f);
  292. color: var(--bg-page, #fff);
  293. transition: opacity 0.15s ease;
  294. &:hover {
  295. opacity: 0.85;
  296. }
  297. }
  298. // ── Mobile/Tablet: 버튼 풀너비 균등 분할 ──────────
  299. @media (max-width: 767px) {
  300. &__banner {
  301. margin: 10px;
  302. }
  303. &__buttons--mobile {
  304. display: flex;
  305. }
  306. // 3개 버튼 완전 균등 분할 (FollowButton 포함)
  307. &__buttons--mobile > &__action,
  308. &__buttons--mobile > .follow-button {
  309. flex: 1 1 0;
  310. min-width: 0;
  311. }
  312. }
  313. // 매우 좁은 화면: 패딩만 축소 (아이콘+텍스트 유지)
  314. @media (max-width: 380px) {
  315. &__buttons--mobile > &__action,
  316. &__buttons--mobile > .follow-button {
  317. padding: 0 10px;
  318. font-size: 0.8125rem;
  319. }
  320. }
  321. // ── Desktop: 버튼 info 내부, 썸네일 크게 ──────────
  322. @media (min-width: 768px) {
  323. &__buttons--desktop {
  324. display: flex;
  325. }
  326. &__buttons--mobile {
  327. display: none;
  328. }
  329. // Desktop에서 3버튼 최소 폭 통일 — 내용 길이 달라도 균형
  330. &__buttons--desktop > &__action,
  331. &__buttons--desktop > .follow-button {
  332. min-width: 104px;
  333. }
  334. &__profile {
  335. align-items: center;
  336. gap: 20px;
  337. padding: 20px 24px 16px;
  338. }
  339. &__avatar {
  340. width: 128px;
  341. height: 128px;
  342. }
  343. &__name {
  344. font-size: 1.5rem;
  345. }
  346. &__meta {
  347. font-size: 0.875rem;
  348. }
  349. &__tabs {
  350. padding: 0 24px;
  351. }
  352. &__tab-content {
  353. padding: 20px 24px;
  354. }
  355. &__live {
  356. margin: 0 24px;
  357. }
  358. }
  359. }
  360. @keyframes pulse-live {
  361. 0%, 100% { opacity: 1; }
  362. 50% { opacity: 0.4; }
  363. }